package org.seed.mybatis.core.annotation;

import java.util.ArrayList;
import java.util.List;

public enum DbTypeEnum {

    MICROSOFTSQLSERVER("microsoftsqlserver"),
    MYSQL("mysql"),
    ORACLE("oracle"),
    POSTGRESQL("postgresql"),
    SQLITE("sqlite");

    private String categoryName;

    DbTypeEnum(String categoryName) {
        this.categoryName = categoryName;
    }


    public String getCategoryName() {
        return categoryName;
    }

    public String value() {
        return categoryName;
    }

    public static List<String> getSupportDbType() {
        List<String> rst = new ArrayList<>();
        for (DbTypeEnum dbTypeEnum : DbTypeEnum.values()) {
            rst.add(dbTypeEnum.getCategoryName());
        }
        return rst;
    }


}
